package com.xzy.spring.config;

import com.xzy.spring.demo.aspect.MathLog;
import com.xzy.spring.demo.aspect.MathUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author xzy
 * @date 2021/2/18 21:13
 * 说明：
 */
@EnableAspectJAutoProxy
@Configuration
public class AspectConfig {

    @Bean
    public MathUtil mathUtil() {
        return new MathUtil();
    }

    @Bean
    public MathLog mathLog() {
        return new MathLog();
    }
}
